<html>
<head>
    <link href="__PUBLIC__/home/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="__PUBLIC__/home/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/home/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/style.min.css?v=4.0.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="panel panel-primary">
        <div class="panel-heading">
            对接教务系统
        </div>
        <div class="panel-body">
            <form action="" class="form-horizontal" method="post">
                <input type="hidden" name="do" value="update">
                <br>

                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">教务系统网址</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-graduation-cap"></i></span>
                        <input type="url" class="form-control" id="site" name="site" value="{$site}">
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </div>

                <div class="line line-dashed line-lg pull-in"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">学号</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
                        <input type="text" class="form-control" name="sid" value="{$sid}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">密码</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-credit-card"></i></span>
                        <input type="text" class="form-control" name="pwd" value="{$pwd}">
                    </div>
                </div>
                <div class="form-group">
                    <div align="center">
                        <button type="submit" class="btn btn-primary">对接</button>
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>
            </form>
        </div>
    </div>
</div>
<script src="__PUBLIC__/home/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/home/js/bootstrap.min.js?v=3.3.5"></script>
<script src="__PUBLIC__/home/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script>
    var $site = $("#site").bsSuggest({
        url: "site_json.html",
        effectiveFields: ["school_name", "site", "num"],
        effectiveFieldsAlias: {school_name: '学校名称', site: 'url', num: '本站用户'},
        /* searchFields: [ "shortAccount"],
         ,*/
        idField: "school_name",
        keyField: "site"
    });
</script>
</body>
</html>
